#pragma once
#include "GameObject.h"
#include "Model.h"
#include <Box2D/Box2D.h>

class PhysicObject :
	public GameObject
{
public:
	PhysicObject(b2BodyType _type = b2_dynamicBody, double _x = 0, double _y = 0, std::string _gfxCode = "NONE", unsigned int _width = 0, unsigned int _height = 0, std::string _tag = "NONE", std::string _viewMode = "TRANSPARENT", std::string _actorType = "PHYSIC");
	virtual ~PhysicObject(void);

	b2Body *body;

	virtual void update();
	void addFixture(b2FixtureDef *def);
	void readFromFile(); //reads body definition from file
	void saveToFile();


};
